package com.ccc.scala.base6_object

object Object11_Emun {
  def main(args: Array[String]): Unit = {
    // 枚举类
    println(Color.RED)
    println(Color.YELLOW)
    println(Color.BLUE)
  }

  object Color extends Enumeration {
    val RED = Value(1, "red")
    val YELLOW = Value(2, "yellow")
    val BLUE = Value(3, "blue")

  }
}
